﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:local="clr-namespace:MVVMFramework.View"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <ControlTemplate x:Key="SeparatorTemplate" TargetType="local:Separator">
        <Grid Height="{TemplateBinding Height}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Column="0" VerticalAlignment="Center" Margin="5 0" Text="{TemplateBinding Header}"/>
            <Separator Grid.Column="1" />
        </Grid>
    </ControlTemplate>

    <Style TargetType="local:Separator">
        <Setter Property="Focusable" Value="False"/>
        <Setter Property="Template" Value="{StaticResource SeparatorTemplate}"/>
    </Style>

</ResourceDictionary>